package com.haha.community.service;

import com.haha.community.entity.LoginTicket;
import com.haha.community.entity.User;

import java.util.Map;

public interface UserService {
    User findUserById(int userid);

    Map<String, Object> register(User user);

    int handleActivation(int userid, String activationCode);

    Map<String, Object> handleLogin(String username, String password, int expired);

    void logout(String ticket);

    LoginTicket selectLoginTicketByTicket(String ticket);
}
